Skip to content

fix: summarize with email-ai-tools 3.0.13 and convert with email-text-tools 3.1.4 - #723

Merged
andris9 merged 4 commits into
masterfrom
email-ai-tools-3010
Nov 29, 2026
Merged

andris9 merged 4 commits into
masterfrom
email-ai-tools-3010

Conversation

@andris9

@andris9 andris9 commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Updates @postalsys/email-ai-tools to 3.0.13 and @postalsys/email-text-tools to 3.1.4 (via npm run update). Each is installed once. 2.91.3 ships email-ai-tools 3.0.9, where a sender can make the AI summary fail and keep a message out of the risk scoring in three ways: about 50 KB of unclosed nested <template> elements (fixed in 3.0.10), about 16 KB of formatting elements wrapped around blocks (3.0.11), or a table cell span in the thousands (3.0.12). That last one also made htmlToText() throw, so a message sent with HTML only, or a reply quoting such a message, lost its plain text part (fixed in email-text-tools 3.1.4). Release notes: https://github.com/postalsys/email-ai-tools/releases, https://github.com/postalsys/email-text-tools/releases/tag/v3.1.4. npm run test:cjs passes (6541/6541).

In 3.0.9 about 50KB of unclosed nested template elements overflowed the call stack and made the
AI summary fail, so a sender could keep a message out of the risk scoring. 3.0.10 counts a
template's content toward the nesting limit from the template.
@socket-security

socket-security Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​postalsys/​email-text-tools@​3.1.3 ⏵ 3.1.47710091 +196100
Updated@​postalsys/​email-ai-tools@​3.0.9 ⏵ 3.0.1379 +110010096 +1100

View full report

3.0.10 still let about 16KB of formatting elements wrapped around blocks grow the tree past the
nesting limit, so the AI summary failed. 3.0.11 measures depth on the tree as built and leaves
out anything past the limit, whichever parser rule placed it there.
@andris9 andris9 changed the title fix: summarize with email-ai-tools 3.0.10 fix: summarize with email-ai-tools 3.0.11 Nov 29, 2026
3.0.12 keeps a table cell span only up to 999, so a colspan or rowspan in the thousands no longer
overflows the text converter's stack and makes the AI summary fail.
@andris9 andris9 changed the title fix: summarize with email-ai-tools 3.0.11 fix: summarize with email-ai-tools 3.0.12 Nov 29, 2026
A colspan or rowspan of several thousand made the HTML to text conversion throw, so a message
sent with HTML only, or a reply quoting such a message, went out without its plain text part.
email-text-tools 3.1.4 caps such spans, and email-ai-tools 3.0.13 moves to it so only one copy
is installed.
@andris9 andris9 changed the title fix: summarize with email-ai-tools 3.0.12 fix: summarize with email-ai-tools 3.0.13 and convert with email-text-tools 3.1.4 Nov 29, 2026
@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Medium priority
License policy violation: npm @postalsys/email-text-tools under Unicode-3.0

License: Unicode-3.0 - The applicable license policy does not permit this license (5) (package/UNICODE-LICENSE.txt)

License: Unicode-3.0 - The applicable license policy does not permit this license (5) (package/dist/vendor/jsdom.LICENSES.txt)

License: W3C-20150513 - The applicable license policy does not permit this license (5) (package/dist/vendor/jsdom.LICENSES.txt)

From: package-lock.json → npm/@postalsys/email-text-tools@3.1.4

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@postalsys/email-text-tools@3.1.4. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

@andris9
andris9 merged commit c25a9da into master Nov 29, 2026
31 checks passed
@andris9
andris9 deleted the email-ai-tools-3010 branch November 30, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant